Logo DBM  DBM-6000/Serial Output


This paper explain how to send DinTalk formatted strings on the serial port (RS-232 or RS-485) of the protocol converter.
There is no distinction between the RS-232 and RS-485 outputs which are internally connected to one single port.

 

1) How to set up the system :

  1. Add a protocol converter on the controller (V1.14 or higher).
  2. In the window 'management of the devices on the main bus", control that the model is "RS output - 6000" and the version is "3.30" . If it is not the case, then burn the converter flash with the file named RSOUT_IP.s24 (IP) or RSOUT_RS (RS-485) . These flashes are available on the CDROM in the subdirectory Flash\ProtocolConverter.
  3. Do not add any slave on these converter.

2) Configuration of the protocol converter:

Name Camera Interface  
Address The exact address number labeled on the protocol converter. 5333 is for example.
Protocol Automatic  
Bauds   1200, 2400, 4800, 9600, 19200, 38400, 153600
Bits   7 or 8 bits.
Parity   None, Even or Odd
Number Retry   The number of times the message will be repeated if no response is received.
T1   This is the time waiting a response.[milliseconds]
T2   This is the time between a response and the next message.[microseconds]

 

3)Controlling strings with DinTalk:

 

Use the DinTalk Print Command.

Syntax :

Print <ProtConvID> : "String" [:Variable1] ... [:Variable6]

<ProtConvID> is the serial number of protocol converter.

String is the message to output. The maximum length is 256 characters. The internal FIFO stack of the protocol converter can contain up to 100 strings.

Variable1
to
Variable6 : See " How to insert the value of a variable".

 

To print special characters :

<CR> Carriage return : \r
<LF> Line Feed: \n
%: %%
Any byte: 02h, 0Dh, 0AAH, ...: \02, \0d, \aa, ...

 

Examples:

NB: All print commands should be conditionnally triggered (inside an 'if chg')

if up condition then

Print 5408 : "Date : %02d/%02d/%04d %02d:%02d:%02d\r\n": SysDate: SysMonth :SysYear: SysHour : SysMinute : SysSecond
'Date : 01/10/2004 15:31:25
Print 5408 : " Hello world ! \r\n"
'Hello World ! <CR><LF>
Print 5408 :"\02message\03"
'<STX>message<ETX>

endif

4)  Connection control:

If the protocol converter is disconnected, the converter detects the absence of communication and an error bus is generated immediately. The alarm programmed for main bus errors (if any) in the controller is started.

In the case of a FIFO buffer overrun error , an event "communication default with the periphery" is generated.

 

5) Cabling


See the cabling diagrams in the general help of the DBM-6000.